﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YiLe.BLL.Service;
using YiLe.DAL.Dao;
using YiLe.Model.Domain;

namespace YiLe.BLL.ServiceImpl
{
    public class MenuService:IMenuService
    {
        private MenuDao menuDao;

        public MenuDao MenuDao
        {
            get { return menuDao; }
            set { menuDao = value; }
        }

        public Model.Domain.Menu Get(int id)
        {
            return menuDao.Get(id);
        }

        public IList<Model.Domain.Menu> GetAll()
        {
            return menuDao.GetAll();
        }

        public int Save(Model.Domain.Menu entity)
        {
            throw new NotImplementedException();
        }

        public void Update(Model.Domain.Menu entity)
        {
            throw new NotImplementedException();
        }

        public void Delete(Model.Domain.Menu entity)
        {
            throw new NotImplementedException();
        }

        public IDictionary<Menu, IList<Menu>> GetMenus(string loginName)
        {
            IDictionary<Menu, IList<Menu>> menus = menuDao.GetMenus(loginName);
            return menus;
        }
    }
}
